﻿<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Blazing.BusinessObjects" namespace="Blazing.BusinessObjects.Tagging" >
	<class name="Taxonomy" table="taxonomy" lazy="false" dynamic-insert="true" dynamic-update="true">

		<id name="ID" column="taxonomyid" type="Int32">
			<generator class="native" />
		</id>
		<timestamp column="rowstamp" name="RowStamp" />
		<property name="Name" column="name" length="100" not-null="true" />
		<property name="Slug" column="slug" length="100" />
    
    <many-to-one name="TaxonomyType" column="taxonomytypeid" />

    <set name="TaxonomyTags" table="taxonomytags">
      <key column="taxonomyid"/>
      <one-to-many class="Blazing.BusinessObjects.Tagging.TaxonomyTag" />
    </set>

	</class>
</hibernate-mapping>
